package hookan.redo.common.item;

import hookan.redo.common.creativetab.CreativeTabsRedo;
import net.minecraft.item.ItemSword;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.util.EnumHelper;

public class ItemBestSword extends ItemSword
{
    public ItemBestSword()
    {
//        super(ToolMaterial.IRON);//调用铁剑材质
        super(EnumHelper.addToolMaterial("CHROME", 4, 2000, 15.0F, 10.0F, 15));//添加新材质
        this.setCreativeTab(CreativeTabsRedo.tabRedo);

        //添加新的模型状态
        this.addPropertyOverride(new ResourceLocation("isNatsukiSubaru"),
            (stack, world, entity) -> entity != null && entity.getCustomNameTag().equals("NatsukiSubaru")? 1.0f : 0.0f);
    }
}